package com.ic.es;

import com.ic.es.service.EsFaceService;
import com.ic.es.service.impl.EsFaceServiceImpl;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableFeignClients(basePackages = "IC.system.api")
@EnableScheduling
public class ICEsApplication {
    public static void main(String[] args) {
        SpringApplication.run(ICEsApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  Es模块启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }
    @Bean
    public EsFaceService faceService(RestHighLevelClient restHighLevelClient) {
        return new EsFaceServiceImpl(restHighLevelClient);
    }
}
